package com.miyu.openfeign.service;


import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(name = "book")
public interface openService {

    @RequestMapping(value = "/book/book/test")
    public String test();

    @PostMapping(value = "/book/bookMagic/searchBook")
    public JSONArray searchBook(JSONObject param);
}
